<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta name="author" content="tyler chao">
  <meta name="keywords" content="keywords">
  <meta name="description" content="description">
  <title>设置</title>
  <link rel="stylesheet" href="<{$env.app.res_url}>/css/mobile.min.css">
  <link rel="stylesheet" href="<{$env.app.res_url}>/css/main.min.css">
</head>
<body>
<header class="fixed">
  <div class="top-bar" data-topbar>
    <div class="pos-left">
      <a href="javascript:history.back();" class="icon-arrow-back"></a>
    </div>
    <h1>设置</h1>
    <div class="pos-right"><a href="" class="icon-refresh"></a></div>
  </div>
</header>
<main id="main" class="container no-margin">
  <h2 class="title"><i class="icon-location"></i> <{$store.name}></h2>
  <form action="<{$menu.ajaxSetting}>" method="post" class="collapse" data-validator="ajax">
    <input type="hidden" name="store_id" value="<{$store.store_id}>">
    <ul class="no-bullet table-list">
      <li class="item">
        <label for="self_pick">门店自提</label>
        <div class="switch round">
          <input type="checkbox" name="self_pick" id="self_pick" <{if $store.self_pick == 1}>checked="checked"<{/if}> >
          <label for="self_pick"></label>
        </div>
      </li>
      <li class="item">
        <label for="distribution">门店配送</label>
        <div class="switch round">
          <input type="checkbox" name="distribution" id="distribution" <{if $store.distribution == 1}>checked="checked"<{/if}> >
          <label for="distribution"></label>
        </div>
      </li>
      
      <li class="item">
        <label for="is_ctrl_store">库存管控</label>
        <div class="switch round">
          <input type="checkbox" name="is_ctrl_store" id="is_ctrl_store" <{if $store.is_ctrl_store == 1}>checked="checked"<{/if}> >
          <label for="is_ctrl_store"></label>
        </div>
      </li>
    </ul>
    <div class="action-bar"><button type="submit" class="primary expand">保存</button></div>
  </form>
</main>

<{include file="store/footer.html"}>
</body>
</html>